import request from '@/utils/request'

// 查询新生接站登记列表
export function listStation(query) {
  return request({
    url: '/stureg/pickstation/list',
    method: 'get',
    params: query
  })
}

// 查询新生接站登记详细
export function getStation(id) {
  return request({
    url: '/stureg/pickstation/' + id,
    method: 'get'
  })
}

// 新增新生接站登记
export function addStation(data) {
  return request({
    url: '/stureg/pickstation',
    method: 'post',
    data: data
  })
}

// 修改新生接站登记
export function updateStation(data) {
  return request({
    url: '/stureg/pickstation/update',
    method: 'post',
    data: data
  })
}

// 删除新生接站登记
export function delStation(id) {
  return request({
    url: '/stureg/pickstation/delete/'+id,
    method: 'post'
  })
}
